package com.mytransaction.manager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 模拟的事务管理器
 * 负责提供事务的开启、提交、回滚操作
 */
public class TransactionManager {
    private static final Logger log = LoggerFactory.getLogger(TransactionManager.class);

    public void beginTransaction()
    {
        log.info("======开启事务======");
    }

    public void commit()
    {
        log.info("======提交事务======");
    }

    public void rollback()
    {
        log.info("======回滚事务======");
    }
}
